package com.share.spock

import spock.lang.Specification

/**
 * @author caifan* @created 2021/8/9
 * @description:
 */
class HelloTest extends Specification {


    def "hello"() {
        given:
        def stack = new Stack()
        def elem = "push me"

        when:
        stack.push(elem)

        then:
        !stack.empty
        stack.size() == 1
        stack.peek() == elem
    }
}
